package com.xh.service.imp;

import com.xh.dao.CommentMapper;
import com.xh.service.CommentService;
import com.xh.vo.Comment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImp implements CommentService {
    @Resource
    private CommentMapper commentMapper;
    @Override
    public void insertComment(Comment comment) {
        commentMapper.insertComment(comment);
    }

    @Override
    public List<Comment> queryComment(Comment comment) {
        return commentMapper.queryComment(comment);
    }
}
